package com.fulihui.weixinclient.request.order;

import com.fulihui.weixinclient.http.HttpMethodEnum;
import com.fulihui.weixinclient.result.order.TransfersOrderQueryWeixinResult;
import com.fulihui.weixinclient.util.XMLUtil;

/**
 * 
 * 查询企业付款api
 *
 */
public class TransfersOrderQueryWeixinRequest extends OrderWeixinRequest<TransfersOrderQueryWeixinResult> {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;


    //商户订单号
    private String            partner_trade_no;


    @Override
    protected void childParam() {

    }

    @Override
    public String service() {
        return "https://api.mch.weixin.qq.com/mmpaymkttransfers/gettransferinfo";
    }

    @Override
    public String urlEndStr() {
        return null;
    }

    @Override
    public TransfersOrderQueryWeixinResult parseResult(String respStr) {
        return XMLUtil.parseObject(respStr, TransfersOrderQueryWeixinResult.class);
    }

    @Override
    public HttpMethodEnum httpMethod() {
        return HttpMethodEnum.CERT_SSL_POST;
    }

    @Override
    public String requestData() {
        return XMLUtil.toXMLString(this);
    }

    public String getDevice_info() {
        return device_info;
    }

    public void setDevice_info(String device_info) {
        this.device_info = device_info;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getPartner_trade_no() {
        return partner_trade_no;
    }

    public void setPartner_trade_no(String partner_trade_no) {
        this.partner_trade_no = partner_trade_no;
    }

}
